<template>
    <div v-if="showPage">
        <div v-for="row in 100" :key="row">
            MarketingData{{ row }}
        </div>
    </div>
</template>

<script setup lang="ts">
    import { ref, onMounted } from "vue";
    import { useRoute, useRouter } from "vue-router";
    import useLoading from "@/hooks/loading";

    const { showLoading, hideLoading } = useLoading();// 加载loading
    const route = useRoute();
    const router = useRouter();

    let showPage = ref<boolean>(false);
    onMounted(() => {
        showLoading();
        setTimeout(() => {
            hideLoading();
            showPage.value = true;
        }, 3000)
    })
</script>

<style scoped lang="scss"></style>